package com.sdgakj.entity;

import com.fasterxml.jackson.annotation.JsonIgnore;
import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.*;
import java.sql.Timestamp;
import java.util.Date;

/**
 * Created by 鲁俊杰 on 2017/4/18.
 * 家族历程实体类
 */
@Entity
@Table(name = "f_history")
public class History extends IdEntity {
    private static final long serialVersionUID = 1L;
    private String fhTitle;
    private String fhDesp;
    private String fhImgUrl;
    private Timestamp createtime;
    private Timestamp updatetime;
    private Long fpId;

/*    @ManyToOne(fetch = FetchType.LAZY)
    @JoinColumn(name = "fp_id")
    @JsonIgnore*/
   // private Person person;

    public History(){

    }

    public History(String fhTitle, String fhDesp, String fhImgUrl, Timestamp fnCreatetime, Timestamp fnUpdatetime,Family fpid) {
        this.fhTitle = fhTitle;
        this.fhDesp = fhDesp;
        this.fhImgUrl = fhImgUrl;
        this.createtime = createtime;
       this.updatetime = updatetime;

              /*this.fpId = fpId;*/
    }

   /* public History(String fhTitle, String fhDesp, String fhImgUrl,Timestamp fnCreatetime, Timestamp fnUpdatetime) {
        this.fhTitle = fhTitle;
        this.fhDesp = fhDesp;
        this.fhImgUrl = fhImgUrl;
        this.createtime = createtime;
        this.updatetime = updatetime;
    }*/

    public String getFhTitle() {
        return fhTitle;
    }

    public void setFhTitle(String fhTitle) {
        this.fhTitle = fhTitle;
    }

    public String getFhDesp() {
        return fhDesp;
    }

    public void setFhDesp(String fhDesp) {
        this.fhDesp = fhDesp;
    }

    public String getFhImgUrl() {
        return fhImgUrl;
    }

    public void setFhImgUrl(String fhImgUrl) {
        this.fhImgUrl = fhImgUrl;
    }

    public Timestamp getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Timestamp createtime) {
        this.createtime = createtime;
    }

    public Timestamp getUpdatetime() {
        return updatetime;
    }

    public void setUpdatetime(Timestamp updatetime) {
        this.updatetime = updatetime;
    }
/*
    public Long getFpId() {
        return fpId;
    }

    public void setFpId(Long fpId) {
        this.fpId = fpId;
    }*/
}
